<?php
/**
 * Settings class definition
 *   
 * @author Sean Crystal <seancrystal@gmail.com>
 * @package MutantVole
 */
require_once 'lib/spyc/spyc.php5';
require_once 'components/Contract.php';

/**
 * Loads application settings from a yaml file
 * @package MutantVole
 * @subpackage Base
 */  
class Settings {
	/**
     * Load settings from the specified YAML file
	 * @param string $filename
	 * @return array
	 */   	
	public static function LoadSettingsFile($filename) {
        if (empty($filename) || !file_exists($filename)) {
            throw new SettingsFileNotFoundException($filename);
        }

        $yaml = Spyc::YAMLLoad($filename);

		return $yaml;
    }
}

?>